home *** CD-ROM | disk | FTP | other *** search
- /* Example 14 */
-
- CR = '0A'x /* CR = Carriage Return */
- FF = '0C'x /* FF = FormFeed (Clear Screen) */
- ClearScreen = FF || CR /* || = concatenate : means Join together */
-
- Do Forever
- Say ClearScreen
-
- Say " (A) - Archive"
- Say " (B) - Batch"
- Say " (C) - Catch"
- Say ""
- Say " (X) - Exit"
- Say ""
-
- Options Prompt "Enter Choice : "; pull choice 2
-
- Choice = Upper(Chocie)
-
- If Choice = "X" Then Do /* This is where we Quit */
- Say "Exiting..."
- Exit
- End
- Else If Choice = "A" Then Do
- Say "Archive"
- Call WaitForCR()
- End
- Else If Choice = "B" Then Do
- Say "Batch"
- Call WaitForCR()
- End
- Else If Choice = "C" Then Do
- Say "Catch"
- Call WaitForCR()
- End
- End
-
- WaitForCR(): Procedure
- Say ""
- Options Prompt "Return to Continue"
- Do Until C==""
- Parse Pull c
- End
- Return